package homework1;

import java.util.Scanner;

public class NumberTest {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入第一个数：");
		int num1 = scanner.nextInt();
		System.out.println("请输入第er个数：");
		int num2 = scanner.nextInt();
		Number number = new Number();
		number.setNum1(num1);//设置数的值赋予给相关类里面的set
		number.setNum2(num2);//设置数的值赋予给相关类里面的set
		num1 = number.getNum1();
		num2 = number.getNum2();
		System.out.println(number);
		number.add();
		System.out.println("-------------");
		number.sub();
		System.out.println("-------------");
		number.multi();
		System.out.println("-------------");
		number.div();
	
	}

}
